package cn.java.basic;

class MyJob
{
    public String strPosition;
    private double dbSalary;
    public static String strCompanyName="无名";
    public static final double PI=3.1415926;

    public MyJob(String strPosition,double dbSalary)
    {
        this.strPosition=strPosition;
        this.dbSalary=dbSalary;
    }

    public static void printJobInfo()
    {
        System.out.println(String.format("公司名称:%s，职位：%s",strCompanyName,"空"));
    }

}

public class StaticFinalDemo
{
    public static void main(String[] args)
    {
        System.out.println(MyJob.strCompanyName);
        MyJob.strCompanyName="远大发展科技有限公司";
        System.out.println(MyJob.strCompanyName);
        MyJob job=new MyJob("技术支持",5000);
        MyJob.printJobInfo();
    }
}
